﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000445 RID: 1093
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterAdventureScRsp : IMessage<EnterAdventureScRsp>, IMessage, IEquatable<EnterAdventureScRsp>, IDeepCloneable<EnterAdventureScRsp>, IBufferMessage
	{
		// Token: 0x17000E12 RID: 3602
		// (get) Token: 0x06003126 RID: 12582 RVA: 0x00087561 File Offset: 0x00085761
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterAdventureScRsp> Parser
		{
			get
			{
				return EnterAdventureScRsp._parser;
			}
		}

		// Token: 0x17000E13 RID: 3603
		// (get) Token: 0x06003127 RID: 12583 RVA: 0x00087568 File Offset: 0x00085768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterAdventureScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000E14 RID: 3604
		// (get) Token: 0x06003128 RID: 12584 RVA: 0x0008757A File Offset: 0x0008577A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterAdventureScRsp.Descriptor;
			}
		}

		// Token: 0x06003129 RID: 12585 RVA: 0x00087581 File Offset: 0x00085781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureScRsp()
		{
		}

		// Token: 0x0600312A RID: 12586 RVA: 0x0008758C File Offset: 0x0008578C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureScRsp(EnterAdventureScRsp other) : this()
		{
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600312B RID: 12587 RVA: 0x000875D8 File Offset: 0x000857D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterAdventureScRsp Clone()
		{
			return new EnterAdventureScRsp(this);
		}

		// Token: 0x17000E15 RID: 3605
		// (get) Token: 0x0600312C RID: 12588 RVA: 0x000875E0 File Offset: 0x000857E0
		// (set) Token: 0x0600312D RID: 12589 RVA: 0x000875E8 File Offset: 0x000857E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17000E16 RID: 3606
		// (get) Token: 0x0600312E RID: 12590 RVA: 0x000875F1 File Offset: 0x000857F1
		// (set) Token: 0x0600312F RID: 12591 RVA: 0x000875F9 File Offset: 0x000857F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003130 RID: 12592 RVA: 0x00087602 File Offset: 0x00085802
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterAdventureScRsp);
		}

		// Token: 0x06003131 RID: 12593 RVA: 0x00087610 File Offset: 0x00085810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterAdventureScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Scene, other.Scene) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003132 RID: 12594 RVA: 0x00087660 File Offset: 0x00085860
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003133 RID: 12595 RVA: 0x000876B5 File Offset: 0x000858B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003134 RID: 12596 RVA: 0x000876BD File Offset: 0x000858BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003135 RID: 12597 RVA: 0x000876C8 File Offset: 0x000858C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.scene_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Scene);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003136 RID: 12598 RVA: 0x00087724 File Offset: 0x00085924
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003137 RID: 12599 RVA: 0x0008777C File Offset: 0x0008597C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterAdventureScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003138 RID: 12600 RVA: 0x000877E4 File Offset: 0x000859E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003139 RID: 12601 RVA: 0x000877F0 File Offset: 0x000859F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001358 RID: 4952
		private static readonly MessageParser<EnterAdventureScRsp> _parser = new MessageParser<EnterAdventureScRsp>(() => new EnterAdventureScRsp());

		// Token: 0x04001359 RID: 4953
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400135A RID: 4954
		public const int SceneFieldNumber = 14;

		// Token: 0x0400135B RID: 4955
		private SceneInfo scene_;

		// Token: 0x0400135C RID: 4956
		public const int RetcodeFieldNumber = 3;

		// Token: 0x0400135D RID: 4957
		private uint retcode_;
	}
}
